-
Notifications
You must be signed in to change notification settings - Fork 63
fix panic when calling ToUnstructured on nil metav1.Time #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix panic when calling ToUnstructured on nil metav1.Time #258
Conversation
Welcome @com6056! |
Hi @com6056. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
438c406
to
f0cbe01
Compare
/ok-to-test |
@jpbetz anything I can do to help get this reviewed? Let me know if I can provide any additional context! 🙏 |
It seems the PR fixes metav1.Duration too, so it would be nice to have the fix, thanks @com6056 |
ack, i'll try to get to this |
/lgtm |
Looks like the owner file is out of date - @apelisse is the only approved
…On Wed, May 29, 2024 at 17:21 Kubernetes Prow Robot < ***@***.***> wrote:
[APPROVALNOTIFIER] This PR is *NOT APPROVED*
This pull-request has been approved by: *com6056
<#258#>*, *jpbetz
<#258 (comment)>*
*Once this PR has been reviewed and has the lgtm label*, please assign
apelisse <https://github.com/apelisse> for approval. For more information
see the Kubernetes Code Review Process
<https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process>
.
The full list of commands accepted by this bot can be found here
<https://go.k8s.io/bot-commands?repo=kubernetes-sigs%2Fstructured-merge-diff>
.
Needs approval from an approver in each of these files:
- *OWNERS
<https://github.com/kubernetes-sigs/structured-merge-diff/blob/master/OWNERS>*
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
—
Reply to this email directly, view it on GitHub
<#258 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAERASG6WD4BZLFZN5RSD3ZEZBF3AVCNFSM6AAAAABHXQIVHWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZYGI4DIMJQG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: apelisse, com6056, jpbetz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently, when calling
ToUnstructured
on ametav1.Time
that is anil
pointer, you get a panic:This moves the
nil
pointer check up to before we check if there is a custom converter so that we don't attempt to callToUnstructured
on a nil pointer which triggers the panic.Related issues:
omitempty
specifier is attempted to be converted #229